package model.album;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;

import model.admin.OptionalServiceVO;
import model.album.HappyalbumVO;

import com.ibatis.sqlmap.client.SqlMapClient;

public class HapptAlbumDao {
	private SqlMapClient sqlMapClient;

	public HapptAlbumDao(SqlMapClient sqlMapClient) {
		super();
		this.sqlMapClient = sqlMapClient;
	}
	public List<HappyalbumVO> HappyTimeAlbumList(HashMap map)
			throws SQLException {
		return sqlMapClient.queryForList("happyalbum.HappyTimeAlbumList", map);
	}

	public int getTotalContetn(int no) throws SQLException {
		return (int) sqlMapClient.queryForObject("happyalbum.getTotalContetn",
				no);
	}
	public OptionalServiceVO getIds(HashMap map) throws SQLException {
		return (OptionalServiceVO) sqlMapClient.queryForObject("optionalService.checkId",map);
	}
}
